package com.momoback.entity;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "lf_system", schema = "community", catalog = "")
public class LfSystementity {
    @Basic
    @Column(name = "config")
    private String config;
    @Basic
    @Column(name = "value")
    private String value;
    @Basic
    @Column(name = "extend")
    private String extend;
    @Basic
    @Column(name = "intro")
    private String intro;
    @Id
    private Long id;

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getExtend() {
        return extend;
    }

    public void setExtend(String extend) {
        this.extend = extend;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        LfSystementity that = (LfSystementity) o;
        return Objects.equals(config, that.config) && Objects.equals(value, that.value) && Objects.equals(extend, that.extend) && Objects.equals(intro, that.intro);
    }

    @Override
    public int hashCode() {
        return Objects.hash(config, value, extend, intro);
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }
}
